/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package vn.com.fis.portal.service.persistence;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;

import vn.com.fis.portal.model.VideoEntry;

import java.util.List;

/**
 * The persistence utility for the video entry service. This utility wraps {@link VideoEntryPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author loind
 * @see VideoEntryPersistence
 * @see VideoEntryPersistenceImpl
 * @generated
 */
public class VideoEntryUtil {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
	 */

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
	 */
	public static void clearCache() {
		getPersistence().clearCache();
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
	 */
	public static void clearCache(VideoEntry videoEntry) {
		getPersistence().clearCache(videoEntry);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
	 */
	public long countWithDynamicQuery(DynamicQuery dynamicQuery)
		throws SystemException {
		return getPersistence().countWithDynamicQuery(dynamicQuery);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
	 */
	public static List<VideoEntry> findWithDynamicQuery(
		DynamicQuery dynamicQuery) throws SystemException {
		return getPersistence().findWithDynamicQuery(dynamicQuery);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
	 */
	public static List<VideoEntry> findWithDynamicQuery(
		DynamicQuery dynamicQuery, int start, int end)
		throws SystemException {
		return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
	 */
	public static List<VideoEntry> findWithDynamicQuery(
		DynamicQuery dynamicQuery, int start, int end,
		OrderByComparator orderByComparator) throws SystemException {
		return getPersistence()
				   .findWithDynamicQuery(dynamicQuery, start, end,
			orderByComparator);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
	 */
	public static VideoEntry update(VideoEntry videoEntry, boolean merge)
		throws SystemException {
		return getPersistence().update(videoEntry, merge);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
	 */
	public static VideoEntry update(VideoEntry videoEntry, boolean merge,
		ServiceContext serviceContext) throws SystemException {
		return getPersistence().update(videoEntry, merge, serviceContext);
	}

	/**
	* Caches the video entry in the entity cache if it is enabled.
	*
	* @param videoEntry the video entry
	*/
	public static void cacheResult(
		vn.com.fis.portal.model.VideoEntry videoEntry) {
		getPersistence().cacheResult(videoEntry);
	}

	/**
	* Caches the video entries in the entity cache if it is enabled.
	*
	* @param videoEntries the video entries
	*/
	public static void cacheResult(
		java.util.List<vn.com.fis.portal.model.VideoEntry> videoEntries) {
		getPersistence().cacheResult(videoEntries);
	}

	/**
	* Creates a new video entry with the primary key. Does not add the video entry to the database.
	*
	* @param videoId the primary key for the new video entry
	* @return the new video entry
	*/
	public static vn.com.fis.portal.model.VideoEntry create(long videoId) {
		return getPersistence().create(videoId);
	}

	/**
	* Removes the video entry with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param videoId the primary key of the video entry
	* @return the video entry that was removed
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a video entry with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static vn.com.fis.portal.model.VideoEntry remove(long videoId)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException {
		return getPersistence().remove(videoId);
	}

	public static vn.com.fis.portal.model.VideoEntry updateImpl(
		vn.com.fis.portal.model.VideoEntry videoEntry, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().updateImpl(videoEntry, merge);
	}

	/**
	* Returns the video entry with the primary key or throws a {@link vn.com.fis.portal.NoSuchVideoEntryException} if it could not be found.
	*
	* @param videoId the primary key of the video entry
	* @return the video entry
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a video entry with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static vn.com.fis.portal.model.VideoEntry findByPrimaryKey(
		long videoId)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException {
		return getPersistence().findByPrimaryKey(videoId);
	}

	/**
	* Returns the video entry with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param videoId the primary key of the video entry
	* @return the video entry, or <code>null</code> if a video entry with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static vn.com.fis.portal.model.VideoEntry fetchByPrimaryKey(
		long videoId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByPrimaryKey(videoId);
	}

	/**
	* Returns all the video entries where videoName = &#63; and uploaderId = &#63; and folderId = &#63;.
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @return the matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.VideoEntry> findByName_UploaderId_FolderId(
		java.lang.String videoName, long uploaderId, long folderId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByName_UploaderId_FolderId(videoName, uploaderId,
			folderId);
	}

	/**
	* Returns a range of all the video entries where videoName = &#63; and uploaderId = &#63; and folderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @return the range of matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.VideoEntry> findByName_UploaderId_FolderId(
		java.lang.String videoName, long uploaderId, long folderId, int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByName_UploaderId_FolderId(videoName, uploaderId,
			folderId, start, end);
	}

	/**
	* Returns an ordered range of all the video entries where videoName = &#63; and uploaderId = &#63; and folderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.VideoEntry> findByName_UploaderId_FolderId(
		java.lang.String videoName, long uploaderId, long folderId, int start,
		int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByName_UploaderId_FolderId(videoName, uploaderId,
			folderId, start, end, orderByComparator);
	}

	/**
	* Returns the first video entry in the ordered set where videoName = &#63; and uploaderId = &#63; and folderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching video entry
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a matching video entry could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static vn.com.fis.portal.model.VideoEntry findByName_UploaderId_FolderId_First(
		java.lang.String videoName, long uploaderId, long folderId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException {
		return getPersistence()
				   .findByName_UploaderId_FolderId_First(videoName, uploaderId,
			folderId, orderByComparator);
	}

	/**
	* Returns the last video entry in the ordered set where videoName = &#63; and uploaderId = &#63; and folderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching video entry
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a matching video entry could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static vn.com.fis.portal.model.VideoEntry findByName_UploaderId_FolderId_Last(
		java.lang.String videoName, long uploaderId, long folderId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException {
		return getPersistence()
				   .findByName_UploaderId_FolderId_Last(videoName, uploaderId,
			folderId, orderByComparator);
	}

	/**
	* Returns the video entries before and after the current video entry in the ordered set where videoName = &#63; and uploaderId = &#63; and folderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoId the primary key of the current video entry
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next video entry
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a video entry with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static vn.com.fis.portal.model.VideoEntry[] findByName_UploaderId_FolderId_PrevAndNext(
		long videoId, java.lang.String videoName, long uploaderId,
		long folderId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException {
		return getPersistence()
				   .findByName_UploaderId_FolderId_PrevAndNext(videoId,
			videoName, uploaderId, folderId, orderByComparator);
	}

	/**
	* Returns all the video entries where videoName = &#63; and uploaderId = &#63;.
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @return the matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.VideoEntry> findByName_UploaderId(
		java.lang.String videoName, long uploaderId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByName_UploaderId(videoName, uploaderId);
	}

	/**
	* Returns a range of all the video entries where videoName = &#63; and uploaderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @return the range of matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.VideoEntry> findByName_UploaderId(
		java.lang.String videoName, long uploaderId, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByName_UploaderId(videoName, uploaderId, start, end);
	}

	/**
	* Returns an ordered range of all the video entries where videoName = &#63; and uploaderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.VideoEntry> findByName_UploaderId(
		java.lang.String videoName, long uploaderId, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByName_UploaderId(videoName, uploaderId, start, end,
			orderByComparator);
	}

	/**
	* Returns the first video entry in the ordered set where videoName = &#63; and uploaderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching video entry
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a matching video entry could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static vn.com.fis.portal.model.VideoEntry findByName_UploaderId_First(
		java.lang.String videoName, long uploaderId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException {
		return getPersistence()
				   .findByName_UploaderId_First(videoName, uploaderId,
			orderByComparator);
	}

	/**
	* Returns the last video entry in the ordered set where videoName = &#63; and uploaderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching video entry
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a matching video entry could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static vn.com.fis.portal.model.VideoEntry findByName_UploaderId_Last(
		java.lang.String videoName, long uploaderId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException {
		return getPersistence()
				   .findByName_UploaderId_Last(videoName, uploaderId,
			orderByComparator);
	}

	/**
	* Returns the video entries before and after the current video entry in the ordered set where videoName = &#63; and uploaderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoId the primary key of the current video entry
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next video entry
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a video entry with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static vn.com.fis.portal.model.VideoEntry[] findByName_UploaderId_PrevAndNext(
		long videoId, java.lang.String videoName, long uploaderId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException {
		return getPersistence()
				   .findByName_UploaderId_PrevAndNext(videoId, videoName,
			uploaderId, orderByComparator);
	}

	/**
	* Returns all the video entries.
	*
	* @return the video entries
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.VideoEntry> findAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll();
	}

	/**
	* Returns a range of all the video entries.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @return the range of video entries
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.VideoEntry> findAll(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll(start, end);
	}

	/**
	* Returns an ordered range of all the video entries.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of video entries
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.VideoEntry> findAll(
		int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll(start, end, orderByComparator);
	}

	/**
	* Removes all the video entries where videoName = &#63; and uploaderId = &#63; and folderId = &#63; from the database.
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByName_UploaderId_FolderId(
		java.lang.String videoName, long uploaderId, long folderId)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence()
			.removeByName_UploaderId_FolderId(videoName, uploaderId, folderId);
	}

	/**
	* Removes all the video entries where videoName = &#63; and uploaderId = &#63; from the database.
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByName_UploaderId(java.lang.String videoName,
		long uploaderId)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByName_UploaderId(videoName, uploaderId);
	}

	/**
	* Removes all the video entries from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public static void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeAll();
	}

	/**
	* Returns the number of video entries where videoName = &#63; and uploaderId = &#63; and folderId = &#63;.
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @return the number of matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public static int countByName_UploaderId_FolderId(
		java.lang.String videoName, long uploaderId, long folderId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .countByName_UploaderId_FolderId(videoName, uploaderId,
			folderId);
	}

	/**
	* Returns the number of video entries where videoName = &#63; and uploaderId = &#63;.
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @return the number of matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public static int countByName_UploaderId(java.lang.String videoName,
		long uploaderId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByName_UploaderId(videoName, uploaderId);
	}

	/**
	* Returns the number of video entries.
	*
	* @return the number of video entries
	* @throws SystemException if a system exception occurred
	*/
	public static int countAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countAll();
	}

	/**
	* Returns all the user entries associated with the video entry.
	*
	* @param pk the primary key of the video entry
	* @return the user entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.UserEntry> getUserEntries(
		long pk) throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().getUserEntries(pk);
	}

	/**
	* Returns a range of all the user entries associated with the video entry.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the video entry
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @return the range of user entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.UserEntry> getUserEntries(
		long pk, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().getUserEntries(pk, start, end);
	}

	/**
	* Returns an ordered range of all the user entries associated with the video entry.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the video entry
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of user entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.UserEntry> getUserEntries(
		long pk, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().getUserEntries(pk, start, end, orderByComparator);
	}

	/**
	* Returns the number of user entries associated with the video entry.
	*
	* @param pk the primary key of the video entry
	* @return the number of user entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public static int getUserEntriesSize(long pk)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().getUserEntriesSize(pk);
	}

	/**
	* Returns <code>true</code> if the user entry is associated with the video entry.
	*
	* @param pk the primary key of the video entry
	* @param userEntryPK the primary key of the user entry
	* @return <code>true</code> if the user entry is associated with the video entry; <code>false</code> otherwise
	* @throws SystemException if a system exception occurred
	*/
	public static boolean containsUserEntry(long pk, long userEntryPK)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().containsUserEntry(pk, userEntryPK);
	}

	/**
	* Returns <code>true</code> if the video entry has any user entries associated with it.
	*
	* @param pk the primary key of the video entry to check for associations with user entries
	* @return <code>true</code> if the video entry has any user entries associated with it; <code>false</code> otherwise
	* @throws SystemException if a system exception occurred
	*/
	public static boolean containsUserEntries(long pk)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().containsUserEntries(pk);
	}

	/**
	* Adds an association between the video entry and the user entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntryPK the primary key of the user entry
	* @throws SystemException if a system exception occurred
	*/
	public static void addUserEntry(long pk, long userEntryPK)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().addUserEntry(pk, userEntryPK);
	}

	/**
	* Adds an association between the video entry and the user entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntry the user entry
	* @throws SystemException if a system exception occurred
	*/
	public static void addUserEntry(long pk,
		vn.com.fis.portal.model.UserEntry userEntry)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().addUserEntry(pk, userEntry);
	}

	/**
	* Adds an association between the video entry and the user entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntryPKs the primary keys of the user entries
	* @throws SystemException if a system exception occurred
	*/
	public static void addUserEntries(long pk, long[] userEntryPKs)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().addUserEntries(pk, userEntryPKs);
	}

	/**
	* Adds an association between the video entry and the user entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntries the user entries
	* @throws SystemException if a system exception occurred
	*/
	public static void addUserEntries(long pk,
		java.util.List<vn.com.fis.portal.model.UserEntry> userEntries)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().addUserEntries(pk, userEntries);
	}

	/**
	* Clears all associations between the video entry and its user entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry to clear the associated user entries from
	* @throws SystemException if a system exception occurred
	*/
	public static void clearUserEntries(long pk)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().clearUserEntries(pk);
	}

	/**
	* Removes the association between the video entry and the user entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntryPK the primary key of the user entry
	* @throws SystemException if a system exception occurred
	*/
	public static void removeUserEntry(long pk, long userEntryPK)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeUserEntry(pk, userEntryPK);
	}

	/**
	* Removes the association between the video entry and the user entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntry the user entry
	* @throws SystemException if a system exception occurred
	*/
	public static void removeUserEntry(long pk,
		vn.com.fis.portal.model.UserEntry userEntry)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeUserEntry(pk, userEntry);
	}

	/**
	* Removes the association between the video entry and the user entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntryPKs the primary keys of the user entries
	* @throws SystemException if a system exception occurred
	*/
	public static void removeUserEntries(long pk, long[] userEntryPKs)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeUserEntries(pk, userEntryPKs);
	}

	/**
	* Removes the association between the video entry and the user entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntries the user entries
	* @throws SystemException if a system exception occurred
	*/
	public static void removeUserEntries(long pk,
		java.util.List<vn.com.fis.portal.model.UserEntry> userEntries)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeUserEntries(pk, userEntries);
	}

	/**
	* Sets the user entries associated with the video entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntryPKs the primary keys of the user entries to be associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public static void setUserEntries(long pk, long[] userEntryPKs)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().setUserEntries(pk, userEntryPKs);
	}

	/**
	* Sets the user entries associated with the video entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntries the user entries to be associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public static void setUserEntries(long pk,
		java.util.List<vn.com.fis.portal.model.UserEntry> userEntries)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().setUserEntries(pk, userEntries);
	}

	/**
	* Returns all the category entries associated with the video entry.
	*
	* @param pk the primary key of the video entry
	* @return the category entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.CategoryEntry> getCategoryEntries(
		long pk) throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().getCategoryEntries(pk);
	}

	/**
	* Returns a range of all the category entries associated with the video entry.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the video entry
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @return the range of category entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.CategoryEntry> getCategoryEntries(
		long pk, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().getCategoryEntries(pk, start, end);
	}

	/**
	* Returns an ordered range of all the category entries associated with the video entry.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the video entry
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of category entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<vn.com.fis.portal.model.CategoryEntry> getCategoryEntries(
		long pk, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .getCategoryEntries(pk, start, end, orderByComparator);
	}

	/**
	* Returns the number of category entries associated with the video entry.
	*
	* @param pk the primary key of the video entry
	* @return the number of category entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public static int getCategoryEntriesSize(long pk)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().getCategoryEntriesSize(pk);
	}

	/**
	* Returns <code>true</code> if the category entry is associated with the video entry.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntryPK the primary key of the category entry
	* @return <code>true</code> if the category entry is associated with the video entry; <code>false</code> otherwise
	* @throws SystemException if a system exception occurred
	*/
	public static boolean containsCategoryEntry(long pk, long categoryEntryPK)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().containsCategoryEntry(pk, categoryEntryPK);
	}

	/**
	* Returns <code>true</code> if the video entry has any category entries associated with it.
	*
	* @param pk the primary key of the video entry to check for associations with category entries
	* @return <code>true</code> if the video entry has any category entries associated with it; <code>false</code> otherwise
	* @throws SystemException if a system exception occurred
	*/
	public static boolean containsCategoryEntries(long pk)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().containsCategoryEntries(pk);
	}

	/**
	* Adds an association between the video entry and the category entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntryPK the primary key of the category entry
	* @throws SystemException if a system exception occurred
	*/
	public static void addCategoryEntry(long pk, long categoryEntryPK)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().addCategoryEntry(pk, categoryEntryPK);
	}

	/**
	* Adds an association between the video entry and the category entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntry the category entry
	* @throws SystemException if a system exception occurred
	*/
	public static void addCategoryEntry(long pk,
		vn.com.fis.portal.model.CategoryEntry categoryEntry)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().addCategoryEntry(pk, categoryEntry);
	}

	/**
	* Adds an association between the video entry and the category entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntryPKs the primary keys of the category entries
	* @throws SystemException if a system exception occurred
	*/
	public static void addCategoryEntries(long pk, long[] categoryEntryPKs)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().addCategoryEntries(pk, categoryEntryPKs);
	}

	/**
	* Adds an association between the video entry and the category entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntries the category entries
	* @throws SystemException if a system exception occurred
	*/
	public static void addCategoryEntries(long pk,
		java.util.List<vn.com.fis.portal.model.CategoryEntry> categoryEntries)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().addCategoryEntries(pk, categoryEntries);
	}

	/**
	* Clears all associations between the video entry and its category entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry to clear the associated category entries from
	* @throws SystemException if a system exception occurred
	*/
	public static void clearCategoryEntries(long pk)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().clearCategoryEntries(pk);
	}

	/**
	* Removes the association between the video entry and the category entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntryPK the primary key of the category entry
	* @throws SystemException if a system exception occurred
	*/
	public static void removeCategoryEntry(long pk, long categoryEntryPK)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeCategoryEntry(pk, categoryEntryPK);
	}

	/**
	* Removes the association between the video entry and the category entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntry the category entry
	* @throws SystemException if a system exception occurred
	*/
	public static void removeCategoryEntry(long pk,
		vn.com.fis.portal.model.CategoryEntry categoryEntry)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeCategoryEntry(pk, categoryEntry);
	}

	/**
	* Removes the association between the video entry and the category entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntryPKs the primary keys of the category entries
	* @throws SystemException if a system exception occurred
	*/
	public static void removeCategoryEntries(long pk, long[] categoryEntryPKs)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeCategoryEntries(pk, categoryEntryPKs);
	}

	/**
	* Removes the association between the video entry and the category entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntries the category entries
	* @throws SystemException if a system exception occurred
	*/
	public static void removeCategoryEntries(long pk,
		java.util.List<vn.com.fis.portal.model.CategoryEntry> categoryEntries)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeCategoryEntries(pk, categoryEntries);
	}

	/**
	* Sets the category entries associated with the video entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntryPKs the primary keys of the category entries to be associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public static void setCategoryEntries(long pk, long[] categoryEntryPKs)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().setCategoryEntries(pk, categoryEntryPKs);
	}

	/**
	* Sets the category entries associated with the video entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntries the category entries to be associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public static void setCategoryEntries(long pk,
		java.util.List<vn.com.fis.portal.model.CategoryEntry> categoryEntries)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().setCategoryEntries(pk, categoryEntries);
	}

	public static VideoEntryPersistence getPersistence() {
		if (_persistence == null) {
			_persistence = (VideoEntryPersistence)PortletBeanLocatorUtil.locate(vn.com.fis.portal.service.ClpSerializer.getServletContextName(),
					VideoEntryPersistence.class.getName());

			ReferenceRegistry.registerReference(VideoEntryUtil.class,
				"_persistence");
		}

		return _persistence;
	}

	public void setPersistence(VideoEntryPersistence persistence) {
		_persistence = persistence;

		ReferenceRegistry.registerReference(VideoEntryUtil.class, "_persistence");
	}

	private static VideoEntryPersistence _persistence;
}